import request from "umi-request";

export const login =async ()=>{

    const data = await request()
    localStorage.setItem('token',data)

}

export const logout = () =>{
    localStorage.removeItem('token')
    window.location.href = '/login'
}